↳ Prolog
↳ PrologToPiTRSProof
delete_in_gag(X, tree(X, void, Right), Right) → delete_out_gag(X, tree(X, void, Right), Right)
delete_in_gag(X, tree(X, Left, void), Left) → delete_out_gag(X, tree(X, Left, void), Left)
delete_in_gag(X, tree(X, Left, Right), tree(Y, Left, Right1)) → U1_gag(X, Left, Right, Y, Right1, delmin_in_agg(Right, Y, Right1))
delmin_in_agg(tree(Y, void, Right), Y, Right) → delmin_out_agg(tree(Y, void, Right), Y, Right)
delmin_in_agg(tree(X, Left, X1), Y, tree(X, Left1, X2)) → U6_agg(X, Left, X1, Y, Left1, X2, delmin_in_agg(Left, Y, Left1))
U6_agg(X, Left, X1, Y, Left1, X2, delmin_out_agg(Left, Y, Left1)) → delmin_out_agg(tree(X, Left, X1), Y, tree(X, Left1, X2))
U1_gag(X, Left, Right, Y, Right1, delmin_out_agg(Right, Y, Right1)) → delete_out_gag(X, tree(X, Left, Right), tree(Y, Left, Right1))
delete_in_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U2_gag(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U7_gg(X, Y, less_in_gg(X, Y))
U7_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U2_gag(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U3_gag(X, Y, Left, Right, Left1, delete_in_gag(X, Left, Left1))
delete_in_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U4_gag(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U4_gag(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U5_gag(X, Y, Left, Right, Right1, delete_in_gag(X, Right, Right1))
U5_gag(X, Y, Left, Right, Right1, delete_out_gag(X, Right, Right1)) → delete_out_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U3_gag(X, Y, Left, Right, Left1, delete_out_gag(X, Left, Left1)) → delete_out_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
delete_in_gag(X, tree(X, void, Right), Right) → delete_out_gag(X, tree(X, void, Right), Right)
delete_in_gag(X, tree(X, Left, void), Left) → delete_out_gag(X, tree(X, Left, void), Left)
delete_in_gag(X, tree(X, Left, Right), tree(Y, Left, Right1)) → U1_gag(X, Left, Right, Y, Right1, delmin_in_agg(Right, Y, Right1))
delmin_in_agg(tree(Y, void, Right), Y, Right) → delmin_out_agg(tree(Y, void, Right), Y, Right)
delmin_in_agg(tree(X, Left, X1), Y, tree(X, Left1, X2)) → U6_agg(X, Left, X1, Y, Left1, X2, delmin_in_agg(Left, Y, Left1))
U6_agg(X, Left, X1, Y, Left1, X2, delmin_out_agg(Left, Y, Left1)) → delmin_out_agg(tree(X, Left, X1), Y, tree(X, Left1, X2))
U1_gag(X, Left, Right, Y, Right1, delmin_out_agg(Right, Y, Right1)) → delete_out_gag(X, tree(X, Left, Right), tree(Y, Left, Right1))
delete_in_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U2_gag(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U7_gg(X, Y, less_in_gg(X, Y))
U7_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U2_gag(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U3_gag(X, Y, Left, Right, Left1, delete_in_gag(X, Left, Left1))
delete_in_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U4_gag(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U4_gag(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U5_gag(X, Y, Left, Right, Right1, delete_in_gag(X, Right, Right1))
U5_gag(X, Y, Left, Right, Right1, delete_out_gag(X, Right, Right1)) → delete_out_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U3_gag(X, Y, Left, Right, Left1, delete_out_gag(X, Left, Left1)) → delete_out_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
DELETE_IN_GAG(X, tree(X, Left, Right), tree(Y, Left, Right1)) → U1_GAG(X, Left, Right, Y, Right1, delmin_in_agg(Right, Y, Right1))
DELETE_IN_GAG(X, tree(X, Left, Right), tree(Y, Left, Right1)) → DELMIN_IN_AGG(Right, Y, Right1)
DELMIN_IN_AGG(tree(X, Left, X1), Y, tree(X, Left1, X2)) → U6_AGG(X, Left, X1, Y, Left1, X2, delmin_in_agg(Left, Y, Left1))
DELMIN_IN_AGG(tree(X, Left, X1), Y, tree(X, Left1, X2)) → DELMIN_IN_AGG(Left, Y, Left1)
DELETE_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U2_GAG(X, Y, Left, Right, Left1, less_in_gg(X, Y))
DELETE_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → LESS_IN_GG(X, Y)
LESS_IN_GG(s(X), s(Y)) → U7_GG(X, Y, less_in_gg(X, Y))
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
U2_GAG(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U3_GAG(X, Y, Left, Right, Left1, delete_in_gag(X, Left, Left1))
U2_GAG(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → DELETE_IN_GAG(X, Left, Left1)
DELETE_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U4_GAG(X, Y, Left, Right, Right1, less_in_gg(Y, X))
DELETE_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → LESS_IN_GG(Y, X)
U4_GAG(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U5_GAG(X, Y, Left, Right, Right1, delete_in_gag(X, Right, Right1))
U4_GAG(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → DELETE_IN_GAG(X, Right, Right1)
delete_in_gag(X, tree(X, void, Right), Right) → delete_out_gag(X, tree(X, void, Right), Right)
delete_in_gag(X, tree(X, Left, void), Left) → delete_out_gag(X, tree(X, Left, void), Left)
delete_in_gag(X, tree(X, Left, Right), tree(Y, Left, Right1)) → U1_gag(X, Left, Right, Y, Right1, delmin_in_agg(Right, Y, Right1))
delmin_in_agg(tree(Y, void, Right), Y, Right) → delmin_out_agg(tree(Y, void, Right), Y, Right)
delmin_in_agg(tree(X, Left, X1), Y, tree(X, Left1, X2)) → U6_agg(X, Left, X1, Y, Left1, X2, delmin_in_agg(Left, Y, Left1))
U6_agg(X, Left, X1, Y, Left1, X2, delmin_out_agg(Left, Y, Left1)) → delmin_out_agg(tree(X, Left, X1), Y, tree(X, Left1, X2))
U1_gag(X, Left, Right, Y, Right1, delmin_out_agg(Right, Y, Right1)) → delete_out_gag(X, tree(X, Left, Right), tree(Y, Left, Right1))
delete_in_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U2_gag(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U7_gg(X, Y, less_in_gg(X, Y))
U7_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U2_gag(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U3_gag(X, Y, Left, Right, Left1, delete_in_gag(X, Left, Left1))
delete_in_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U4_gag(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U4_gag(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U5_gag(X, Y, Left, Right, Right1, delete_in_gag(X, Right, Right1))
U5_gag(X, Y, Left, Right, Right1, delete_out_gag(X, Right, Right1)) → delete_out_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U3_gag(X, Y, Left, Right, Left1, delete_out_gag(X, Left, Left1)) → delete_out_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
DELETE_IN_GAG(X, tree(X, Left, Right), tree(Y, Left, Right1)) → U1_GAG(X, Left, Right, Y, Right1, delmin_in_agg(Right, Y, Right1))
DELETE_IN_GAG(X, tree(X, Left, Right), tree(Y, Left, Right1)) → DELMIN_IN_AGG(Right, Y, Right1)
DELMIN_IN_AGG(tree(X, Left, X1), Y, tree(X, Left1, X2)) → U6_AGG(X, Left, X1, Y, Left1, X2, delmin_in_agg(Left, Y, Left1))
DELMIN_IN_AGG(tree(X, Left, X1), Y, tree(X, Left1, X2)) → DELMIN_IN_AGG(Left, Y, Left1)
DELETE_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U2_GAG(X, Y, Left, Right, Left1, less_in_gg(X, Y))
DELETE_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → LESS_IN_GG(X, Y)
LESS_IN_GG(s(X), s(Y)) → U7_GG(X, Y, less_in_gg(X, Y))
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
U2_GAG(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U3_GAG(X, Y, Left, Right, Left1, delete_in_gag(X, Left, Left1))
U2_GAG(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → DELETE_IN_GAG(X, Left, Left1)
DELETE_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U4_GAG(X, Y, Left, Right, Right1, less_in_gg(Y, X))
DELETE_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → LESS_IN_GG(Y, X)
U4_GAG(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U5_GAG(X, Y, Left, Right, Right1, delete_in_gag(X, Right, Right1))
U4_GAG(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → DELETE_IN_GAG(X, Right, Right1)
delete_in_gag(X, tree(X, void, Right), Right) → delete_out_gag(X, tree(X, void, Right), Right)
delete_in_gag(X, tree(X, Left, void), Left) → delete_out_gag(X, tree(X, Left, void), Left)
delete_in_gag(X, tree(X, Left, Right), tree(Y, Left, Right1)) → U1_gag(X, Left, Right, Y, Right1, delmin_in_agg(Right, Y, Right1))
delmin_in_agg(tree(Y, void, Right), Y, Right) → delmin_out_agg(tree(Y, void, Right), Y, Right)
delmin_in_agg(tree(X, Left, X1), Y, tree(X, Left1, X2)) → U6_agg(X, Left, X1, Y, Left1, X2, delmin_in_agg(Left, Y, Left1))
U6_agg(X, Left, X1, Y, Left1, X2, delmin_out_agg(Left, Y, Left1)) → delmin_out_agg(tree(X, Left, X1), Y, tree(X, Left1, X2))
U1_gag(X, Left, Right, Y, Right1, delmin_out_agg(Right, Y, Right1)) → delete_out_gag(X, tree(X, Left, Right), tree(Y, Left, Right1))
delete_in_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U2_gag(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U7_gg(X, Y, less_in_gg(X, Y))
U7_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U2_gag(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U3_gag(X, Y, Left, Right, Left1, delete_in_gag(X, Left, Left1))
delete_in_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U4_gag(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U4_gag(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U5_gag(X, Y, Left, Right, Right1, delete_in_gag(X, Right, Right1))
U5_gag(X, Y, Left, Right, Right1, delete_out_gag(X, Right, Right1)) → delete_out_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U3_gag(X, Y, Left, Right, Left1, delete_out_gag(X, Left, Left1)) → delete_out_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDP
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
delete_in_gag(X, tree(X, void, Right), Right) → delete_out_gag(X, tree(X, void, Right), Right)
delete_in_gag(X, tree(X, Left, void), Left) → delete_out_gag(X, tree(X, Left, void), Left)
delete_in_gag(X, tree(X, Left, Right), tree(Y, Left, Right1)) → U1_gag(X, Left, Right, Y, Right1, delmin_in_agg(Right, Y, Right1))
delmin_in_agg(tree(Y, void, Right), Y, Right) → delmin_out_agg(tree(Y, void, Right), Y, Right)
delmin_in_agg(tree(X, Left, X1), Y, tree(X, Left1, X2)) → U6_agg(X, Left, X1, Y, Left1, X2, delmin_in_agg(Left, Y, Left1))
U6_agg(X, Left, X1, Y, Left1, X2, delmin_out_agg(Left, Y, Left1)) → delmin_out_agg(tree(X, Left, X1), Y, tree(X, Left1, X2))
U1_gag(X, Left, Right, Y, Right1, delmin_out_agg(Right, Y, Right1)) → delete_out_gag(X, tree(X, Left, Right), tree(Y, Left, Right1))
delete_in_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U2_gag(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U7_gg(X, Y, less_in_gg(X, Y))
U7_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U2_gag(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U3_gag(X, Y, Left, Right, Left1, delete_in_gag(X, Left, Left1))
delete_in_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U4_gag(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U4_gag(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U5_gag(X, Y, Left, Right, Right1, delete_in_gag(X, Right, Right1))
U5_gag(X, Y, Left, Right, Right1, delete_out_gag(X, Right, Right1)) → delete_out_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U3_gag(X, Y, Left, Right, Left1, delete_out_gag(X, Left, Left1)) → delete_out_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
↳ PiDP
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
↳ PiDP
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
DELMIN_IN_AGG(tree(X, Left, X1), Y, tree(X, Left1, X2)) → DELMIN_IN_AGG(Left, Y, Left1)
delete_in_gag(X, tree(X, void, Right), Right) → delete_out_gag(X, tree(X, void, Right), Right)
delete_in_gag(X, tree(X, Left, void), Left) → delete_out_gag(X, tree(X, Left, void), Left)
delete_in_gag(X, tree(X, Left, Right), tree(Y, Left, Right1)) → U1_gag(X, Left, Right, Y, Right1, delmin_in_agg(Right, Y, Right1))
delmin_in_agg(tree(Y, void, Right), Y, Right) → delmin_out_agg(tree(Y, void, Right), Y, Right)
delmin_in_agg(tree(X, Left, X1), Y, tree(X, Left1, X2)) → U6_agg(X, Left, X1, Y, Left1, X2, delmin_in_agg(Left, Y, Left1))
U6_agg(X, Left, X1, Y, Left1, X2, delmin_out_agg(Left, Y, Left1)) → delmin_out_agg(tree(X, Left, X1), Y, tree(X, Left1, X2))
U1_gag(X, Left, Right, Y, Right1, delmin_out_agg(Right, Y, Right1)) → delete_out_gag(X, tree(X, Left, Right), tree(Y, Left, Right1))
delete_in_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U2_gag(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U7_gg(X, Y, less_in_gg(X, Y))
U7_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U2_gag(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U3_gag(X, Y, Left, Right, Left1, delete_in_gag(X, Left, Left1))
delete_in_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U4_gag(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U4_gag(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U5_gag(X, Y, Left, Right, Right1, delete_in_gag(X, Right, Right1))
U5_gag(X, Y, Left, Right, Right1, delete_out_gag(X, Right, Right1)) → delete_out_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U3_gag(X, Y, Left, Right, Left1, delete_out_gag(X, Left, Left1)) → delete_out_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
DELMIN_IN_AGG(tree(X, Left, X1), Y, tree(X, Left1, X2)) → DELMIN_IN_AGG(Left, Y, Left1)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
DELMIN_IN_AGG(Y, tree(X, Left1, X2)) → DELMIN_IN_AGG(Y, Left1)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
U4_GAG(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → DELETE_IN_GAG(X, Right, Right1)
DELETE_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U2_GAG(X, Y, Left, Right, Left1, less_in_gg(X, Y))
DELETE_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U4_GAG(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U2_GAG(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → DELETE_IN_GAG(X, Left, Left1)
delete_in_gag(X, tree(X, void, Right), Right) → delete_out_gag(X, tree(X, void, Right), Right)
delete_in_gag(X, tree(X, Left, void), Left) → delete_out_gag(X, tree(X, Left, void), Left)
delete_in_gag(X, tree(X, Left, Right), tree(Y, Left, Right1)) → U1_gag(X, Left, Right, Y, Right1, delmin_in_agg(Right, Y, Right1))
delmin_in_agg(tree(Y, void, Right), Y, Right) → delmin_out_agg(tree(Y, void, Right), Y, Right)
delmin_in_agg(tree(X, Left, X1), Y, tree(X, Left1, X2)) → U6_agg(X, Left, X1, Y, Left1, X2, delmin_in_agg(Left, Y, Left1))
U6_agg(X, Left, X1, Y, Left1, X2, delmin_out_agg(Left, Y, Left1)) → delmin_out_agg(tree(X, Left, X1), Y, tree(X, Left1, X2))
U1_gag(X, Left, Right, Y, Right1, delmin_out_agg(Right, Y, Right1)) → delete_out_gag(X, tree(X, Left, Right), tree(Y, Left, Right1))
delete_in_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U2_gag(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U7_gg(X, Y, less_in_gg(X, Y))
U7_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U2_gag(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U3_gag(X, Y, Left, Right, Left1, delete_in_gag(X, Left, Left1))
delete_in_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U4_gag(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U4_gag(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U5_gag(X, Y, Left, Right, Right1, delete_in_gag(X, Right, Right1))
U5_gag(X, Y, Left, Right, Right1, delete_out_gag(X, Right, Right1)) → delete_out_gag(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U3_gag(X, Y, Left, Right, Left1, delete_out_gag(X, Left, Left1)) → delete_out_gag(X, tree(Y, Left, Right), tree(Y, Left1, Right))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
U4_GAG(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → DELETE_IN_GAG(X, Right, Right1)
DELETE_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U2_GAG(X, Y, Left, Right, Left1, less_in_gg(X, Y))
DELETE_IN_GAG(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U4_GAG(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U2_GAG(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → DELETE_IN_GAG(X, Left, Left1)
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U7_gg(X, Y, less_in_gg(X, Y))
U7_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
DELETE_IN_GAG(X, tree(Y, Left1, Right)) → U2_GAG(X, Left1, less_in_gg(X, Y))
U2_GAG(X, Left1, less_out_gg) → DELETE_IN_GAG(X, Left1)
DELETE_IN_GAG(X, tree(Y, Left, Right1)) → U4_GAG(X, Right1, less_in_gg(Y, X))
U4_GAG(X, Right1, less_out_gg) → DELETE_IN_GAG(X, Right1)
less_in_gg(0, s(X)) → less_out_gg
less_in_gg(s(X), s(Y)) → U7_gg(less_in_gg(X, Y))
U7_gg(less_out_gg) → less_out_gg
less_in_gg(x0, x1)
U7_gg(x0)
From the DPs we obtained the following set of size-change graphs: